package com.asj.house.client;

import com.asj.house.config.feign.HouseRoomDetailFeignConfig;
import com.asj.house.returns.RespEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "houseRoomDetailClient", url = "${house.url}", configuration = HouseRoomDetailFeignConfig.class)
public interface HouseRoomDetailClient {

    /**
     * 房源详细信息
     * @param roomId
     * @return
     */
    @GetMapping("/house-room-detail")
    RespEntity getRoomDetail(@RequestParam(value = "roomId", required = true) Integer roomId);
}
